package IO;

import java.io.*;

/**
 * 缓冲字节输入流
 *         可以按行读取文件
 */
public class BRDmeo {
    public static void main(String[] args) throws IOException {
        /**
         * 文件流--转换流（字符转字节）----缓冲流----写入流
         */
        FileInputStream fis = new FileInputStream("./File/pw.txt");
        InputStreamReader isr= new InputStreamReader(fis);
        BufferedReader   br = new BufferedReader(isr);
        String line ;
        while( (line=br.readLine())!=null){
            System.out.println(line);
        }
        br.close();

    }
}
